package cn.itsource.pethome.service.impl;

import cn.itsource.pethome.domain.Employee;
import cn.itsource.pethome.mapper.EmployeeMapper;
import cn.itsource.pethome.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class EmployeeServiceImpl implements EmployeeService {
    @Autowired
    EmployeeMapper employeeMapper;


    @Override
    public List<Employee> findAll() {
        return employeeMapper.findAll();
    }

    @Override
    public void insert(Employee employee) {
        employeeMapper.insert(employee);
    }
}
